Optimal. Leaf size=157 \[ \frac {(a-5 b) \text {ArcTan}(\sinh (c+d x))}{2 (a-b)^3 d}+\frac {(5 a-b) b^{3/2} \text {ArcTan}\left (\frac {\sqrt {b} \sinh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} (a-b)^3 d}+\frac {b (a+b) \sinh (c+d x)}{2 a (a-b)^2 d \left (a+b \sinh ^2(c+d x)\right )}+\frac {\text {sech}(c+d x) \tanh (c+d x)}{2 (a-b) d \left (a+b \sinh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3269, 425, 541,
536, 209, 211} \begin {gather*} \frac {b^{3/2} (5 a-b) \text {ArcTan}\left (\frac {\sqrt {b} \sinh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} d (a-b)^3}+\frac {(a-5 b) \text {ArcTan}(\sinh (c+d x))}{2 d (a-b)^3}+\frac {b (a+b) \sinh (c+d x)}{2 a d (a-b)^2 \left (a+b \sinh ^2(c+d x)\right )}+\frac {\tanh (c+d x) \text {sech}(c+d x)}{2 d (a-b) \left (a+b \sinh ^2(c+d x)\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 211
Rule 425
Rule 536
Rule 541
Rule 3269
Rubi steps
\begin {align*} \int \frac {\text {sech}^3(c+d x)}{\left (a+b \sinh ^2(c+d x)\right )^2} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{\left (1+x^2\right )^2 \left (a+b x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {\text {sech}(c+d x) \tanh (c+d x)}{2 (a-b) d \left (a+b \sinh ^2(c+d x)\right )}-\frac {\text {Subst}\left (\int \frac {-a+2 b-3 b x^2}{\left (1+x^2\right ) \left (a+b x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{2 (a-b) d}\\ &=\frac {b (a+b) \sinh (c+d x)}{2 a (a-b)^2 d \left (a+b \sinh ^2(c+d x)\right )}+\frac {\text {sech}(c+d x) \tanh (c+d x)}{2 (a-b) d \left (a+b \sinh ^2(c+d x)\right )}-\frac {\text {Subst}\left (\int \frac {-2 \left (a^2-4 a b+b^2\right )-2 b (a+b) x^2}{\left (1+x^2\right ) \left (a+b x^2\right )} \, dx,x,\sinh (c+d x)\right )}{4 a (a-b)^2 d}\\ &=\frac {b (a+b) \sinh (c+d x)}{2 a (a-b)^2 d \left (a+b \sinh ^2(c+d x)\right )}+\frac {\text {sech}(c+d x) \tanh (c+d x)}{2 (a-b) d \left (a+b \sinh ^2(c+d x)\right )}+\frac {(a-5 b) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{2 (a-b)^3 d}+\frac {\left ((5 a-b) b^2\right ) \text {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,\sinh (c+d x)\right )}{2 a (a-b)^3 d}\\ &=\frac {(a-5 b) \tan ^{-1}(\sinh (c+d x))}{2 (a-b)^3 d}+\frac {(5 a-b) b^{3/2} \tan ^{-1}\left (\frac {\sqrt {b} \sinh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} (a-b)^3 d}+\frac {b (a+b) \sinh (c+d x)}{2 a (a-b)^2 d \left (a+b \sinh ^2(c+d x)\right )}+\frac {\text {sech}(c+d x) \tanh (c+d x)}{2 (a-b) d \left (a+b \sinh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.79, size = 230, normalized size = 1.46 \begin {gather*} \frac {2 \sqrt {a} (a-b) b^2 \sinh (c+d x)+(2 a-b) \left (b^{3/2} (-5 a+b) \text {ArcTan}\left (\frac {\sqrt {a} \text {csch}(c+d x)}{\sqrt {b}}\right )+2 a^{3/2} (a-5 b) \text {ArcTan}\left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )+a^{3/2} (a-b) \text {sech}(c+d x) \tanh (c+d x)\right )+b \cosh (2 (c+d x)) \left (b^{3/2} (-5 a+b) \text {ArcTan}\left (\frac {\sqrt {a} \text {csch}(c+d x)}{\sqrt {b}}\right )+2 a^{3/2} (a-5 b) \text {ArcTan}\left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )+a^{3/2} (a-b) \text {sech}(c+d x) \tanh (c+d x)\right )}{2 a^{3/2} (a-b)^3 d (2 a-b+b \cosh (2 (c+d x)))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(367\) vs.
\(2(141)=282\).
time = 2.06, size = 368, normalized size = 2.34
method | result | size |
derivativedivides | \(\frac {\frac {2 b^{2} \left (\frac {-\frac {\left (a -b \right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}+\frac {\left (a -b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a}}{a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}+\frac {\left (5 a -b \right ) \left (\frac {\left (-a +\sqrt {-b \left (a -b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}-\frac {\left (a +\sqrt {-b \left (a -b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2}\right )}{\left (a -b \right )^{3}}+\frac {\frac {2 \left (\left (\frac {b}{2}-\frac {a}{2}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-\frac {b}{2}+\frac {a}{2}\right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\left (a -5 b \right ) \arctan \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\left (a -b \right )^{3}}}{d}\) | \(368\) |
default | \(\frac {\frac {2 b^{2} \left (\frac {-\frac {\left (a -b \right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}+\frac {\left (a -b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a}}{a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}+\frac {\left (5 a -b \right ) \left (\frac {\left (-a +\sqrt {-b \left (a -b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}-\frac {\left (a +\sqrt {-b \left (a -b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2}\right )}{\left (a -b \right )^{3}}+\frac {\frac {2 \left (\left (\frac {b}{2}-\frac {a}{2}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-\frac {b}{2}+\frac {a}{2}\right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\left (a -5 b \right ) \arctan \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\left (a -b \right )^{3}}}{d}\) | \(368\) |
risch | \(\frac {{\mathrm e}^{d x +c} \left (a b \,{\mathrm e}^{6 d x +6 c}+b^{2} {\mathrm e}^{6 d x +6 c}+4 a^{2} {\mathrm e}^{4 d x +4 c}-3 a b \,{\mathrm e}^{4 d x +4 c}+b^{2} {\mathrm e}^{4 d x +4 c}-4 a^{2} {\mathrm e}^{2 d x +2 c}+3 a b \,{\mathrm e}^{2 d x +2 c}-b^{2} {\mathrm e}^{2 d x +2 c}-a b -b^{2}\right )}{d \left (a -b \right )^{2} \left (1+{\mathrm e}^{2 d x +2 c}\right )^{2} a \left (b \,{\mathrm e}^{4 d x +4 c}+4 a \,{\mathrm e}^{2 d x +2 c}-2 b \,{\mathrm e}^{2 d x +2 c}+b \right )}+\frac {i \ln \left ({\mathrm e}^{d x +c}+i\right ) a}{2 \left (a -b \right )^{3} d}-\frac {5 i \ln \left ({\mathrm e}^{d x +c}+i\right ) b}{2 \left (a -b \right )^{3} d}-\frac {i \ln \left ({\mathrm e}^{d x +c}-i\right ) a}{2 \left (a -b \right )^{3} d}+\frac {5 i \ln \left ({\mathrm e}^{d x +c}-i\right ) b}{2 \left (a -b \right )^{3} d}+\frac {5 \sqrt {-a b}\, b \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{b}-1\right )}{4 a \left (a -b \right )^{3} d}-\frac {\sqrt {-a b}\, b^{2} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{b}-1\right )}{4 a^{2} \left (a -b \right )^{3} d}-\frac {5 \sqrt {-a b}\, b \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{b}-1\right )}{4 a \left (a -b \right )^{3} d}+\frac {\sqrt {-a b}\, b^{2} \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{b}-1\right )}{4 a^{2} \left (a -b \right )^{3} d}\) | \(494\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 3474 vs.
\(2 (141) = 282\).
time = 0.70, size = 6548, normalized size = 41.71 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {sech}^{3}{\left (c + d x \right )}}{\left (a + b \sinh ^{2}{\left (c + d x \right )}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\mathrm {cosh}\left (c+d\,x\right )}^3\,{\left (b\,{\mathrm {sinh}\left (c+d\,x\right )}^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________